package com.khyr.feign;

import com.khyr.entity.CareOrder;
import com.khyr.vo.R;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


import java.util.List;

/**
 * 连接到services-chargeManagement服务
 * @author zr
 */
@FeignClient(value = "services-chargeManagement", fallbackFactory = UserFallbackFactory.class)
public interface ChargeManagementFeign {

    @GetMapping("/charge/Registration/getCareOrderByRegId/{regId}")
    public R<List<CareOrder>> getCareOrderByRegId(@PathVariable String regId);

}
